/**
 * In me the tiger sniffs the rose.
 *
 * @Author:徐家政
 * @Date:2019-04-17 22:51
 */
package com.shiyu.demo.controller;

import com.shiyu.demo.service.PostInfoService;
import com.shiyu.demo.util.R;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@CrossOrigin
public class PostInfoController {
    @Resource
    private PostInfoService postInfoService;
    @RequestMapping("/community/postinfo")
    public R getPostInfo(Integer postId){
//        postId=1;
        return postInfoService.getPostInfo(postId);
    }
}
